home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / libhtml_.tar / c_dialect.h next >
C/C++ Source or Header  |  1993-01-20  |  823b  |  46 lines

  1. /* c_dialect.h
  2.  * $Id: c_dialect.h,v 1.1 92/11/30 18:00:48 connolly Exp Locker: connolly $
  3.  */
  4.  
  5. #ifndef c_dialect_h
  6. #define c_dialect_h
  7.  
  8. /* __STDC__ is defined by ANSI C */
  9.  
  10. /* __stdc__ should be set to 1 for compilers
  11.    that are not strictly conforming ANSI C compilers,
  12.    and thus don't define __STDC__, but do support
  13.    the following featers. (e.g. CONVEX C)
  14.    */
  15.  
  16. /* K&R style C is the default */
  17.  
  18. #ifndef PARAMS
  19. #if defined(__STDC__) || defined(__stdc__)
  20. #define PARAMS(x) x
  21. #else
  22. #define PARAMS(x) ()
  23. #endif
  24. #endif
  25.  
  26. #ifndef CONST
  27. #if defined(__STDC__) || defined(__stdc__)
  28. #define CONST const
  29. #else
  30. #define CONST
  31. #endif
  32. #endif
  33.  
  34. #ifndef VOIDPTR
  35. #if defined(__STDC__) || defined(__stdc__)
  36. #define VOIDPTR void*
  37. #define VOID void
  38. #else
  39. #define VOIDPTR char*
  40. #define VOID int
  41. #endif
  42. #endif
  43.  
  44. #endif /* c_dialect_h */
  45.  
  46.